/*
 * Vector.cpp
 *
 *  Created on: 2010-06-19
 *      Author: Daniel
 */

#include "../inc/Vector.h"

#include <stdlib.h>

Vector::Vector(int _size) {
	size=_size;
	tab = (float*) calloc(size,sizeof(float));
}

Vector::~Vector() {
	free(tab);
}

float Vector::get(int x) const {
	return tab[x];
}

void Vector::set(int x, float val) {
	 tab[x]=val;
}
int Vector::getSize() const {
	return size;
}
